<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" 
%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" 
%><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" 
%><%@ page contentType="text/html;charset=ISO-8859-1"
%><html:html locale="true">
    <head>
        <title><bean:message key="ofertaListar.title"/></title>
        <html:base/>
        <link rel="stylesheet" type="text/css" href="../css/style.css"></link>
    </head>
    <body>
        <div id="header">
            <div id="title"><bean:message key="ofertaListar.title"/></div>
            <div id="menu">
                <ul id="nav">
                  <% if(new Integer(session.getAttribute("tipoUsuario").toString()) != 0) {%>
                    <li><html:link action="/OfertaCrearI.do" paramId="idCoordinacion" paramName="idCoordinacion"><bean:message key="ofertaListar.label1"/></html:link></li>
                  <%}else{%>
                    <li><html:link action="/OfertaCrearI.do"><bean:message key="ofertaListar.label1"/></html:link></li>
                  <%}%>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/OfertaBuscarI.do"><bean:message key="ofertaListar.label2"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/OfertaListarI.do"><bean:message key="ofertaListar.label3"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/OfertaInfo.do"><bean:message key="ofertaEnviar.label4"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/A_PreConfirmarOfertaC.do"><bean:message key="ofertaListar.label5"/></html:link></li>
                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div class="content">
                            ${empty msg ? "" : msg}
                <h2><bean:message key="ofertaListar.label0"/></h2>
                <table border="1">
                    <thead>
                        <tr>
                            <th>Asignatura</th>
                            <th>Per&iacute;odo</th>
                            <th>Plan de Estudios</th>

                        </tr>
                    </thead>
                    <tbody><% request.setAttribute("_vacio", new Object[0]);%>
                        <logic:iterate id="oferta"  collection="${empty L_Oferta ? _vacio : L_Oferta}">
                            <tr>
                                <td><html:link action="/OfertaI.do" paramId="idOferta" paramName="oferta" paramProperty="idOferta">${empty oferta.requisito ? "" : oferta.requisito.asignatura.codigo}</html:link></td>
                                <td>${oferta.periodo.nombre}</td>
                                <td>${empty oferta.planDeEstudios ? "" : oferta.planDeEstudios.carrera}</td>
                                

                            </tr>
                        </logic:iterate>
                    </tbody>
                </table>

                        </div>
                    </div>
                    <div id="right"><jsp:include page="/ppal/menu.jsp" flush="true"/></div>
                    <div class="clearer"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
        <h3 class="title"></h3>
        <div id="footer"> <bean:message key="bottom.label"/> </div>
        <td>${ofertaEnviadaM == null ? "":"Se ha enviado la Oferta satisfactoriamente al Departamento"}</td>
    </body>
</html:html>